package com.f5.management.dao;

import com.f5.management.entity.Parking;
import com.f5.management.entity.ParkingManagement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
@Repository
public interface ParkingManagementDAO {
    List<ParkingManagement> list();

    List<ParkingManagement> listNotUse();

    ParkingManagement get(int id);

    ParkingManagement getByParking(Parking parking);

    void insert(ParkingManagement parkingManagement);

    void update(ParkingManagement parkingManagement);

    void delete(int id);

    Long count();

    List<ParkingManagement> findByPage(@Param("start") Integer start, @Param("rows") Integer rows);
}
